#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
// #include "sign.h"
#include "api.h"
#include "utils/randombytes.h"

#define MLEN 59
#define NTESTS 1000
// #define SHOW_MSG

void single_msg_correctness(void);
void multi_random_msg_correctness(void);
void cross_version_verify_corectness(void);

/*
void cross_version_verify_corectness(void) {
  unsigned int j;
  int ret;
  size_t mlen, smlen;
  uint8_t m[MLEN] = {
    0xf3, 0xd0, 0x9, 0xb5, 0xf3, 0x6a, 0xec, 0xcb, 0x2c, 0xac, 0x57, 0xaf, 0x5, 0x7b, 0x84, 0xde, 0x22, 0x62, 0x72, 0xd4, 0xed, 0x32, 0x21, 0x56, 0x5a, 0xef, 0xa3, 0xac, 0x60, 0xf1, 0x82, 0x2f, 0x3c, 0x34, 0x6f, 0x1e, 0x45, 0xa3, 0x20, 0x83, 0x67, 0x20, 0x8a, 0x9c, 0xb9, 0x94, 0xbc, 0x27, 0xc5, 0xe2, 0xf0, 0x7, 0x4a, 0xfc, 0xc3, 0xf0, 0x63, 0x51, 0xa2
  };
  uint8_t sm[MLEN + CRYPTO_BYTES] = {
    0x84, 0x57, 0x37, 0x4, 0x7, 0x4c, 0xb3, 0x22, 0xb5, 0xcd, 0x15, 0xfd, 0xf3, 0x22, 0x60, 0x11, 0x7b, 0xd9, 0xb2, 0x0, 0xf0, 0x27, 0x41, 0x39, 0x79, 0xcb, 0xc3, 0x75, 0x1e, 0x54, 0x54, 0xdc, 0x66, 0x19, 0xb4, 0xf9, 0x61, 0xf4, 0x9f, 0x26, 0xe0, 0x29, 0x90, 0x5c, 0x48, 0x15, 0x54, 0xb9, 0xa1, 0x5d, 0xd5, 0x30, 0x89, 0x82, 0xa2, 0x7d, 0xac, 0xb2, 0x5c, 0x1, 0x2f, 0xba, 0x89, 0x6, 0xd7, 0xc9, 0xed, 0xe3, 0x88, 0x1, 0x7e, 0x58, 0x53, 0x28, 0x2d, 0x2d, 0x67, 0x34, 0x47, 0x27, 0x2, 0x15, 0xf4, 0x4b, 0x2b, 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d, 0x92, 0xeb, 0x1d, 0xe, 0xce, 0xd8, 0x7a, 0x69, 0x29
  };
  // uint8_t sk[CRYPTO_SECRETKEYBYTES] = {
  //   0x88, 0xac, 0x93, 0x4c, 0xed, 0x84, 0x2a, 0x79, 0x87, 0xc3, 0x54, 0x76, 0x6d, 0x67, 0x4f, 0x6b, 0x90, 0x9c, 0xfb, 0x80, 0x4e, 0xe5, 0x71, 0xa2, 0x6, 0x16, 0x69, 0x8c, 0xa5, 0x2e, 0x35, 0x80, 0x9, 0x11, 0x3f, 0x85, 0x4e, 0x45, 0x72, 0xba, 0xbf, 0x4, 0x8a, 0xc6, 0x69, 0xdf, 0xe8, 0x6e, 0x5e, 0x30, 0x90, 0x75, 0xdf, 0x93, 0x7f, 0xd7, 0x4b, 0x46, 0x35, 0xaf, 0xa6, 0xc4, 0xff, 0xa1, 0xe6, 0x59, 0x2e, 0xf6, 0x18, 0x98, 0x3b, 0xc6, 0x90, 0xae, 0x18, 0xe, 0x11, 0xbb, 0x4d, 0xb1, 0x75, 0x34, 0xb5, 0xab, 0xbc, 0x48, 0x6a, 0x82, 0x33, 0x49, 0x51, 0x19, 0x91, 0xa2, 0xf8, 0xa2, 0x9a, 0xc2, 0x91, 0x9a, 0x24, 0x2, 0x20, 0xa5, 0x48, 0xc, 0x44, 0x22, 0x92, 0x18, 0x86, 0x20, 0x43, 0x22, 0xdb, 0x20, 0x20, 0xc1, 0x32, 0x6e, 0xc0, 0x46, 0xe, 0xa1, 0x32, 0x4e, 0x22, 0xa3, 0x4c, 0x4b, 0x14, 0x22, 0x53, 0xc0, 0x64, 0x12, 0xc0, 0x0, 0xa3, 0x48, 0x91, 0x91, 0x10, 0x70, 0x3, 0x12, 0x65, 0x40, 0x28, 0x60, 0xc, 0x25, 0x20, 0x3, 0xb5, 0x70, 0x23, 0x13, 0x29, 0x3, 0x37, 0x0, 0x18, 0x45, 0x11, 0x4, 0x18, 0x88, 0x12, 0x21, 0xa, 0x41, 0x14, 0x40, 0xd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xb4, 0x88, 0x43, 0x34, 0x5, 0xc1, 0x94, 0x89, 0xc2, 0x92, 0x8d, 0xa, 0x13, 0x40, 0x5b, 0x38, 0x82, 0x2, 0x25, 0x81, 0x83, 0x22, 0x2e, 0xc4, 0x38, 0x42, 0x48, 0xc6, 0x20, 0x12, 0x44, 0x61, 0x81, 0xc2, 0x4c, 0x4, 0x19, 0xd, 0xc4, 0xc6, 0x65, 0xe3, 0x48, 0xe, 0x4b, 0x42, 0x20, 0x4c, 0x48, 0x40, 0x0, 0x39, 0x69, 0x2, 0xc9, 0x11, 0xc, 0x32, 0x6a, 0x40, 0x0, 0x29, 0x14, 0x92, 0x51, 0xcb, 0x6, 0xd, 0xa2, 0x22, 0x66, 0x10, 0xa8, 0x84, 0xdb, 0x82, 0x64, 0xe4, 0x36, 0x68, 0x20, 0x14, 0x64, 0x94, 0x94, 0x4, 0x89, 0x40, 0x69, 0x9, 0x11, 0x8d, 0xdc, 0x6, 0x92, 0xe0, 0xc4, 0xd, 0xe0, 0xb2, 0x91, 0x20, 0x3, 0x6c, 0x91, 0x36, 0x82, 0x50, 0x80, 0x21, 0xc3, 0x82, 0x29, 0xd1, 0x26, 0x71, 0x5a, 0x48, 0x6c, 0x48, 0x2, 0x25, 0xd2, 0x14, 0xc, 0x42, 0xb2, 0x50, 0x5c, 0x6, 0x4, 0xa2, 0x20, 0x71, 0xc, 0xb0, 0x28, 0x3, 0x11, 0x72, 0xd9, 0xb6, 0x65, 0x1c, 0x85, 0x84, 0xe2, 0xb2, 0x61, 0x60, 0x46, 0x70, 0x24, 0xb0, 0x25, 0xe4, 0x28, 0x88, 0x20, 0x80, 0x80, 0x53, 0xc8, 0x40, 0x8, 0x21, 0x60, 0x9, 0x35, 0x40, 0xe2, 0x18, 0x86, 0xc, 0xb2, 0x6d, 0xca, 0x44, 0x1, 0xd0, 0xb6, 0xd, 0xa4, 0x16, 0x2, 0x9a, 0xa0, 0x2d, 0xc8, 0x20, 0x2c, 0x22, 0x33, 0x52, 0x94, 0x24, 0x0, 0x13, 0x40, 0x6c, 0xb, 0x42, 0x4d, 0xda, 0xa0, 0x61, 0xd3, 0x82, 0x31, 0x21, 0x19, 0x8d, 0xe2, 0x32, 0x88, 0x8, 0x28, 0xa, 0x50, 0x90, 0x41, 0xc8, 0x80, 0x68, 0xa4, 0x38, 0x4a, 0x11, 0x33, 0x6, 0x83, 0x96, 0x49, 0x4, 0xc2, 0x8, 0x11, 0x32, 0x60, 0xcc, 0xb6, 0x2c, 0xa, 0x44, 0x44, 0x5c, 0xa8, 0x88, 0x0, 0x47, 0x66, 0x1, 0x48, 0x2c, 0x4b, 0x48, 0x68, 0x3, 0x3, 0xe, 0x14, 0xa5, 0x91, 0x5c, 0x40, 0x86, 0x22, 0x6, 0x0, 0x42, 0x94, 0x64, 0x11, 0x42, 0x24, 0x1a, 0x21, 0x2c, 0x9a, 0x84, 0x4, 0x99, 0xc6, 0x6c, 0x4c, 0x84, 0x21, 0xa2, 0x20, 0x6, 0x41, 0x12, 0x31, 0x42, 0x42, 0x25, 0x8c, 0x8, 0x61, 0x4a, 0x28, 0x48, 0x60, 0x32, 0x4e, 0x22, 0xa5, 0x68, 0x4a, 0x26, 0x60, 0xdb, 0x26, 0x8d, 0x92, 0x46, 0x70, 0x98, 0x40, 0x2a, 0x10, 0x90, 0x8c, 0x84, 0x10, 0x4, 0xd2, 0x44, 0x8, 0xe2, 0xc8, 0x8, 0xdb, 0xa4, 0x2c, 0xda, 0x48, 0x72, 0xd8, 0x18, 0x8, 0x61, 0x40, 0x41, 0x91, 0x12, 0x52, 0x60, 0x2, 0x6e, 0x9b, 0x94, 0x31, 0x9, 0x17, 0x61, 0x9a, 0x90, 0x8, 0x88, 0x10, 0x68, 0x81, 0xa6, 0xd, 0x21, 0x35, 0x65, 0xd9, 0x12, 0x71, 0x19, 0x22, 0x84, 0x53, 0x40, 0x9, 0x9, 0x94, 0x8d, 0x19, 0x11, 0x4c, 0x4a, 0x14, 0x24, 0xca, 0x38, 0x2d, 0x64, 0x38, 0x82, 0x90, 0x86, 0x61, 0xc1, 0xc0, 0x85, 0x11, 0x13, 0x61, 0x63, 0xa4, 0x0, 0x13, 0x84, 0x4, 0x58, 0x24, 0x86, 0x88, 0x34, 0x84, 0x84, 0xc0, 0x60, 0x52, 0x42, 0x22, 0x12, 0xc8, 0x85, 0x41, 0xa4, 0x45, 0x12, 0x34, 0x30, 0x1, 0x18, 0x60, 0x60, 0xa4, 0x24, 0x93, 0x24, 0x10, 0xa1, 0xb8, 0x4, 0x1, 0x24, 0x8a, 0x2, 0xc1, 0x49, 0x12, 0x46, 0x8d, 0x92, 0xa6, 0x20, 0x3, 0xb4, 0x64, 0x9c, 0x0, 0x72, 0x11, 0xc3, 0x4d, 0xc9, 0xa4, 0x69, 0x21, 0x48, 0x4a, 0x5c, 0x86, 0x71, 0xa1, 0x90, 0x2d, 0x41, 0x6, 0x11, 0x4, 0xb3, 0x41, 0xd0, 0x94, 0x2c, 0x52, 0x18, 0x5, 0xdb, 0xa6, 0x65, 0x12, 0x42, 0x89, 0x94, 0x6, 0x4a, 0x24, 0x23, 0x0, 0x15, 0x78, 0x6d, 0xbe, 0x18, 0xc1, 0x63, 0x43, 0x41, 0x1e, 0x3f, 0x33, 0x4a, 0xaf, 0x9f, 0x48, 0x22, 0x9c, 0x7, 0xaf, 0x6e, 0x64, 0x8e, 0xb7, 0x1f, 0xdf, 0x6c, 0xeb, 0x85, 0x91, 0x98, 0x95, 0x72, 0xfd, 0xc2, 0x91, 0xef, 0x6d, 0x7e, 0x8b, 0x57, 0x96, 0xf2, 0x8a, 0x92, 0xeb, 0x83, 0x51, 0x84, 0xde, 0xea, 0x56, 0xaa, 0x69, 0xdc, 0xc, 0xfd, 0x15, 0xa6, 0x33, 0xa5, 0xad, 0xe4, 0x81, 0xbc, 0xb5, 0x2d, 0x41, 0x9f, 0x4b, 0xd7, 0xf9, 0x6e, 0x83, 0x58, 0xd, 0x17, 0x92, 0x5a, 0xad, 0xe7, 0x44, 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, 0xd3, 0xda, 0xaa, 0x5d, 0x32, 0x1c, 0x75, 0x81, 0x89, 0xe8, 0x30, 0x34, 0x70, 0xa9, 0x38, 0xba, 0xa4, 0x95, 0x8f, 0x76, 0xaa, 0xba, 0xa1, 0x5, 0x49, 0x46, 0xc1, 0x46, 0x58, 0x11, 0x4f, 0x3, 0x43, 0xc9, 0xc9, 0x4a, 0x88, 0x9e, 0xc2, 0x60, 0xbd, 0x3b, 0x7e, 0xbc, 0x9d, 0x78, 0x3d, 0x48, 0x97, 0x3f, 0x7e, 0x15, 0x41, 0x85, 0x45, 0x7b, 0xd2, 0xe5, 0x76, 0xba, 0x7e, 0x41, 0x3e, 0x58, 0x54, 0xf5, 0xb7, 0x8c, 0x8d, 0x3a, 0x6d, 0x86, 0x12, 0x8c, 0x15, 0xf5, 0xfc, 0xc3, 0xce, 0x61, 0xff, 0x24, 0x11, 0x1d, 0x2b, 0x9b, 0xf9, 0x5b, 0x39, 0x8, 0x8b, 0x4, 0x53
  // };
  uint8_t m2[MLEN + CRYPTO_BYTES];
  smlen = MLEN + CRYPTO_BYTES;
  printf("================= Start Dilithium%d sign/verify test =================\n", DILITHIUM_MODE);


#ifdef SHOW_MSG
  puts("pk:");
  for(int i = 0; i < CRYPTO_PUBLICKEYBYTES; i++) {
    printf("0x%x, ", pk[i]);
  }
  printf("\n");
  puts("m:");
  for(int i = 0; i < MLEN; i++) {
    printf("0x%x, ", m[i]);
  }
  printf("\n");
  puts("sm:");
  for(int i = 0; i < MLEN + CRYPTO_BYTES; i++) {
    printf("0x%x, ", sm[i]);
  }
  printf("\n");
#endif
  
  ret = crypto_sign_open(m2, &mlen, sm, smlen, pk);

  if(ret) {
    fprintf(stderr, "[-] Verification failed\n");
    return;
  }

  if(mlen != MLEN) {
    fprintf(stderr, "[-] Message lengths don't match\n");
    return;
  }

#ifdef SHOW_MSG
  puts("m2:");
  for(int i = 0; i < mlen; i++) {
    printf("0x%x, ", m2[i]);
  }
  printf("\n");
#endif

  for(j = 0; j < mlen; ++j) {
    if(m[j] != m2[j]) {
      fprintf(stderr, "[-] Messages don't match\n");
      return;
    }
  }


  printf("[+] Test success.\n");

  printf("CRYPTO_PUBLICKEYBYTES = %d\n", CRYPTO_PUBLICKEYBYTES);
  printf("CRYPTO_SECRETKEYBYTES = %d\n", CRYPTO_SECRETKEYBYTES);
  printf("CRYPTO_BYTES = %d\n", CRYPTO_BYTES);
  printf("================= Finish Dilithium%d sign/verify test ================\n", DILITHIUM_MODE);
}

void single_msg_correctness(void) {
  unsigned int j;
  int ret;
  size_t mlen, smlen;
  uint8_t m[MLEN] = {0};
  uint8_t sm[MLEN + CRYPTO_BYTES];
  uint8_t m2[MLEN + CRYPTO_BYTES];
  uint8_t pk[CRYPTO_PUBLICKEYBYTES];
  uint8_t sk[CRYPTO_SECRETKEYBYTES];

  printf("================= Start Dilithium%d sign/verify test =================\n", DILITHIUM_MODE);

  randombytes(m, MLEN);

  crypto_sign_keypair(pk, sk);
#ifdef SHOW_MSG
  puts("pk:");
  for(int i = 0; i < CRYPTO_PUBLICKEYBYTES; i++) {
    printf("0x%x, ", pk[i]);
  }
  printf("\n");
  puts("sk:");
  for(int i = 0; i < CRYPTO_SECRETKEYBYTES; i++) {
    printf("0x%x, ", sk[i]);
  }
  printf("\n");
#endif

  crypto_sign(sm, &smlen, m, MLEN, sk);
#ifdef SHOW_MSG
  puts("m:");
  for(int i = 0; i < MLEN; i++) {
    printf("0x%x, ", m[i]);
  }
  printf("\n");
  puts("sm:");
  for(int i = 0; i < MLEN + CRYPTO_BYTES; i++) {
    printf("0x%x, ", sm[i]);
  }
  printf("\n");
#endif

  ret = crypto_sign_open(m2, &mlen, sm, smlen, pk);
#ifdef SHOW_MSG
  puts("m2:");
  for(int i = 0; i < mlen; i++) {
    printf("0x%x, ", m2[i]);
  }
  printf("\n");
#endif

  if(ret) {
    fprintf(stderr, "[-] Verification failed\n");
    return;
  }

  if(mlen != MLEN) {
    fprintf(stderr, "[-] Message lengths don't match\n");
    return;
  }

  for(j = 0; j < mlen; ++j) {
    if(m[j] != m2[j]) {
      fprintf(stderr, "[-] Messages don't match\n");
      return;
    }
  }


  printf("[+] Test success.\n");

  printf("CRYPTO_PUBLICKEYBYTES = %d\n", CRYPTO_PUBLICKEYBYTES);
  printf("CRYPTO_SECRETKEYBYTES = %d\n", CRYPTO_SECRETKEYBYTES);
  printf("CRYPTO_BYTES = %d\n", CRYPTO_BYTES);
  printf("================= Finish Dilithium%d sign/verify test ================\n", DILITHIUM_MODE);
}
*/

void multi_random_msg_correctness(void) {
  unsigned int i, j;
  int ret;
  size_t mlen, smlen;
  uint8_t m[MLEN] = {0};
  uint8_t sm[MLEN + CRYPTO_BYTES];
  uint8_t m2[MLEN + CRYPTO_BYTES];
  uint8_t pk[CRYPTO_PUBLICKEYBYTES];
  uint8_t sk[CRYPTO_SECRETKEYBYTES];

  printf("================= Start Dilithium%d sign/verify test =================\n", DILITHIUM_MODE);

  for(i = 0; i < NTESTS; ++i) {
    randombytes(m, MLEN);

    crypto_sign_keypair(pk, sk);
#ifdef SHOW_MSG
    if(i == NTESTS/2 + 198) {
      puts("pk:");
      for(int i = 0; i < CRYPTO_PUBLICKEYBYTES; i++) {
        printf("0x%x, ", pk[i]);
      }
      printf("\n");
      puts("sk:");
      for(int i = 0; i < CRYPTO_SECRETKEYBYTES; i++) {
        printf("0x%x, ", sk[i]);
      }
      printf("\n");
    }
#endif

    crypto_sign(sm, &smlen, m, MLEN, sk);
#ifdef SHOW_MSG
    if(i == NTESTS/2 + 198) {
      puts("m:");
      for(int i = 0; i < MLEN; i++) {
        printf("0x%x, ", m[i]);
      }
      printf("\n");
      puts("sm:");
      for(int i = 0; i < MLEN + CRYPTO_BYTES; i++) {
        printf("0x%x, ", sm[i]);
      }
      printf("\n");
    }
#endif

    ret = crypto_sign_open(m2, &mlen, sm, smlen, pk);
#ifdef SHOW_MSG
    if(i == NTESTS/2 + 198) {
      puts("m2:");
      for(int i = 0; i < mlen; i++) {
        printf("0x%x, ", m2[i]);
      }
      printf("\n");
    }
#endif

    if(ret) {
      fprintf(stderr, "[-] Verification failed\n");
      return;
    }

    if(mlen != MLEN) {
      fprintf(stderr, "[-] Message lengths don't match\n");
      return;
    }

    for(j = 0; j < mlen; ++j) {
      if(m[j] != m2[j]) {
        fprintf(stderr, "[-] Messages don't match\n");
        return;
      }
    }

    randombytes((uint8_t *)&j, sizeof(j));
    do {
      randombytes(m2, 1);
    } while(!m2[0]);
    sm[j % CRYPTO_BYTES] += m2[0];
    ret = crypto_sign_open(m2, &mlen, sm, smlen, pk);
    if(!ret) {
      fprintf(stderr, "[-] Trivial forgeries possible\n");
      return;
    }
  }

  printf("[+] Test success.\n");

  printf("CRYPTO_PUBLICKEYBYTES = %d\n", CRYPTO_PUBLICKEYBYTES);
  printf("CRYPTO_SECRETKEYBYTES = %d\n", CRYPTO_SECRETKEYBYTES);
  printf("CRYPTO_BYTES = %d\n", CRYPTO_BYTES);
  printf("================= Finish Dilithium%d sign/verify test ================\n", DILITHIUM_MODE);
}

int main(void)
{

  multi_random_msg_correctness();
  // single_msg_correctness();
  // cross_version_verify_corectness();

  return 0;
}
